<template>

  <el-tabs v-model="activeName" style="padding-left: 8px;">
    <el-tab-pane label="基础信息" name="first">
      <omBaseInfo />
    </el-tab-pane>

    <el-tab-pane label="安全设备设施" name="second">
      <omSafetyEquipment />
    </el-tab-pane>

    <el-tab-pane label="周边环境" name="thired">
      <omSurrounding />
    </el-tab-pane>

    <el-tab-pane label="企业证书" name="four">
      <omCompanyCredential />
    </el-tab-pane>
  </el-tabs>

</template>

<script>
import omSafetyEquipment from './safetyEquipment'
import omBaseInfo from './baseInfo'
import omSurrounding from './surrounding'
import omCompanyCredential from './companyCredential'

export default {
  name: 'BaseInfo',
  components: {
    omBaseInfo,
    omSafetyEquipment,
    omSurrounding,
    omCompanyCredential

  },
  data() {
    return {
      // 默认第一个选项卡
      activeName: 'first'
    }
  }
  // mounted() {
  //
  // },
  // methods: {
  //   handleClick(tab) {
  //     if (tab.name === 'first') {
  //       this.isChildUpdate1 = true
  //       this.isChildUpdate2 = false
  //
  //     } else if (tab.name === 'second') {
  //       this.isChildUpdate1 = false
  //       this.isChildUpdate2 = true
  //     }
  //   }
  // }
}
</script>
